#ifndef MANAGERWIDGET_H
#define MANAGERWIDGET_H

#include <QWidget>
#include <QPushButton>
#include <QLabel>
#include <QLineEdit>
#include <QVBoxLayout>
#include <QHBoxLayout>
#include <QString>
#include <QMessageBox>
#include <QListWidget>
#include <QListWidgetItem>

#include "control/mycontrol.h"
#include "model/basemodel.h"
#include "model/usermodel.h"
#include "data/user.h"
#include "view/checkuserwidget.h"
#include "view/adduserwidget.h"
#include "view/deleteuserwidget.h"
#include "view/alterwidget.h"
#include "view/changethingswidget.h"
#include "view/changetimewidget.h"

class ManagerWidget : public QWidget
{
    Q_OBJECT
  public:
      explicit ManagerWidget(QWidget *parent = nullptr);
      void init_Control();
      void init_Widget();
      void init_Connect();//初始化连接信号和槽

  private:
      QPushButton *checkuserBtn;
      QPushButton *changeuserBtn;
      QPushButton *deletuserBtn;
      QPushButton *adduserBtn;
      QPushButton *changeThingsBtn;
      QPushButton *changeTimeBtn;
      QLabel *adduserLab;
      QLineEdit *adduserEdit;
      QListWidget *list;
      QVBoxLayout *vlay;//导航栏的布局管理器
      QHBoxLayout *hlay;//导航栏的布局管理器
      QHBoxLayout *text;
      QVBoxLayout *manageLay;//管理员工布局管理器


      AddUserWidget *adduserWidget;
      CheckUserWidget *CheckWidget;
      DeleteUserWidget *deleteWidget;
      AlterWidget *alterWidget;
      ChangeThingsWidget *changeThingsWidget;
      ChangeTimeWidget *changeTimeWidget;

  signals:

  public slots:
      void on_checkuserBtn_cliked();
      void on_adduserBtn_cliked();
      void on_deletuserBtn_cliked();
      void on_changeuserBtn_cliked();
      void on_changeThingsBtn_cliked();
      void on_changeTimeBtn_cliked();

      void showMyself();
};

#endif // MANAGERWIDGET_H
